public class PersonMan {
    private String name;
    private int age;
    private String car;
    private String house;
    private double savings;
    private double deposit;

    public PersonMan() {}

    public PersonMan(String name, int age, String car, String house, double savings) {
        this.name = name;
        this.age = age;
        this.car = car;
        this.house = house;
        this.savings = savings;
    }

    // 省略getter和setter方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getCar() {
        return car;
    }

    public void setCar(String car) {
        this.car = car;
    }

    public String getHouse() {
        return house;
    }

    public void setHouse(String house) {
        this.house = house;
    }

    public double getSavings() {
        return savings;
    }

    public void setSavings(double savings) {
        this.savings = savings;
    }
    @Override
    public String toString() {
        return "PersonMan{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", car='" + car + '\'' +
                ", house='" + house + '\'' +
                ", deposit=" + deposit +
                '}';
    }
}
